package com.jhj.common.constants;

/**
 * Web相关的一些常量<br>
 * request/session 属性Key等<br>
 * cookie名称等
 * 
 * @author guobing
 * @since 2014-7-30
 */
public class CookieConstants {
    
    /** 登录Cookie的有效期 (单位: 天) */
    public static final int LOGIN_COOKIE_AGE = 3;
    
    /** 登录状态的属性key */
    public static final String LOGIN_STATUS = "loginStatus";
    
    /** 登录的用户名称 属性Key */
    public static final String LOGIN_USER_NAME = "loginUserName";
    
    /** 登录的用户昵称 属性Key */
    public static final String LOGIN_NICK_NAME = "loginNickName";
    
    /** 登录的用户真实姓名 属性Key */
    public static final String LOGIN_REAL_NAME = "loginRealName";
    
    /** 登录的用户角色名称 属性Key */
    public static final String LOGIN_ROLE_NAME = "loginRoleName";
    
    /** 登录的用户角色编码 属性Key */
    public static final String LOGIN_ROLE_CODE = "loginRoleCode";
    
    /** 登录的用户所属网点 属性Key */
    public static final String LOGIN_USER_SITE = "loginUserSite";
    
    public static final String LOGIN_TIME_FOMART = "yyyyMMddHHmmss";
    
    public static final String ID = "id";
    
    public static final String USER_NAME = "userName";
    
    public static final String NICK_NAME = "nickName";
    
    public static final String MOBILE_PHONE = "mobilePhone";
    
    public static final String EMAIL = "email";
    
    public static final String LOGIN_TIME = "loginTime";
    
    /** 用户类型 1-商家 2-会员 3-运营用户 */
    public static final String CON_TYPE = "conType";
    
    public static final String USER_PIN = "userPin";
    
    public static final String REAL_NAME = "realName";
    
    public static final String ROLE_NAME = "roleName";
    
    public static final String ROLE_CODE = "roleCode";
    
    public static final String USER_SITE = "areaOrSiteName";
    
    /**Man端网点Id*/
    public static final String ORG_ID = "orgId";
    
    /** 3-运营用户 */
    public static final String OPERATOR = "3";
    
    // ******** Web(前端用户) ********************************************************
    public static final String WEB_ID = "webId";
    
    public static final String WEB_USER_NAME = "webUserName";
    
    public static final String WEB_NICK_NAME = "webNickName";
    
    public static final String WEB_MOBILE_PHONE = "webMobilePhone";
    
    public static final String WEB_EMAIL = "webEmail";
    
    public static final String WEB_LOGIN_TIME = "webLoginTime";
    
    /** 登陆成功后加密后的数据字符串 */
    public static final String WEB_GBT = "webGbt";
    
    // ********* Man(后端运营用户) ********************************************
    
    public static final String SYS_ID = "sysId";
    
    public static final String SYS_USER_PIN = "sysUserPin";
    
    public static final String SYS_REAL_NAME = "sysRealName";
    
    /** 用户类型 1-商家 2-会员 3-运营用户 */
    public static final String SYS_CON_TYPE = "sysConType";
    
    public static final String SYS_LOGIN_TIME = "sysLoginTime";
    
    public static final String SYS_ROLE_NAME = "sysRoleName";
    
    public static final String SYS_ROLE_CODE = "sysRoleCode";
    
    public static final String SYS_USER_SITE = "areaOrSiteName";
    
    /** 登陆成功后加密后的数据字符串 */
    public static final String SYS_GBT = "sysGbt";
    
}
